<?php
namespace App\Models;
use Illuminate\Support\Facades\DB;

class ShopRefundLog extends CommonModel {
	protected $table = 'shop_refund_log';

    /*
    *  增加操作订单日志表
    *  @param status 状态，1退款中，2退款成功，3退款失败，4客服介入，5客服介入失败，6用户取消退款
    */

    public function createOrderLog($uid,$refund_sn,$details,$confirm_name='慧生活管理员',$status){
        $order_log_info = array(
            'uid'=>$uid,
            'refund_sn'=>$refund_sn,
            'status'=>$status,
            'details'=>$details,
            'confirm_name'=>$confirm_name,
            'time'=>date('Y-m-d H:i:s'),
            'created_at'=>date('Y-m-d H:i:s'),
            'updated_at'=>date('Y-m-d H:i:s'),
        );
        return self::insert($order_log_info);
    }

}